package com.example.demo.mapper;

import com.example.demo.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {

    public String getUserName();
    public UserEntity getUserById(@Param("id") int id);
    public int deleteUserById(@Param("id") int id);
    public List<UserEntity> list();
    public int addUser(UserEntity user);
    public int updateUser(UserEntity user);
}
